<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>PhpMySyslog</title>
	<link type="text/css" rel="stylesheet" href="phpmysyslog.css"  title="main" />
	<script type="text/javascript" src="phpmysyslog.js"></script>
	<script type="text/javascript" src="list.min.js"></script>
	<!--
		HTML Class are named Cxxx
		HTML ID are named Ixxx
		HTTP Parameters are named Pxxx
	-->
	
</head>
<body onload="fconfig(); fupdate();">
    
<form name="dynamic" action="" enctype="application/x-www-form-urlencoded" id="dynamic"><p>
	
	<!-- Predefined ranges -->
	<div id="ranges_"><!--DYN
		<a onclick="setRange(9999900000); fupdate();" href="#" title="Reset to max range" class="c_button c_time">All</a>&nbsp;
		(...)
	--></div>

	<!-- Start date selection -->
	<div id="start_">
		<label for="Pstart_d">Start</label>
		<a class="c_button c_btn_time" title="reset to 1900-01-01" href="#">|&#x25C0;</a> 
		<span id="start_day">Sat</span> 
		<input type="text" size="10" name="Pstart_d" id="Pstart_d" value="2011-01-01" onchange="setDayOfWeeks();" /> 
		<a class="c_button c_btn_time" title="set to end date" href="#">&#x25B6;</a> 
		<a class="c_button c_btn_time" title="reset to 00:00:00" href="#">|&#x25C0;</a> 
		<input type="text" size="8" name="Pstart_h" id="Pstart_h" value="12:00:00" /> 
	</div>

	<!-- End date selection -->
	<div id="end_">
		<label for="Pend_d">End</label>
		<a class="c_button c_btn_time" title="set to start date" href="#">&#x25C0;</a>
		<span id="end_day">Fri</span>
		<input type="text" size="10" name="Pend_d" id="Pend_d" value="2011-04-01" onchange="setDayOfWeeks();" /> 
		<a class="c_button c_btn_time" title="reset to today" href="#">&#x25B6;|</a> 
		<input type="text" size="8" name="Pend_h" id="Pend_h" value="23:00:00" /> 
		<a class="c_button c_btn_time" title="reset to 23:59:59" href="#">&#x25B6;|</a> 
	</div>
	
	<!-- Limit result size --> 
	<div id="max_"> 
		<label for="Pmax">Max</label>
		<select name="Pmax" id="Pmax" required="required" onchange="fupdate();"><!--DYN
			<option value="10">10 lines</option>
			(...)
		--></select>
	</div>
	
	<!-- Export to CSV (dynamic add GET or POST parameters)--> 
	<!--span id="export_"> 
		<a title="Export current results to CSV" href="csv.php?">CSV</a>
	</span--> 

	<div id="Pyounger" class="c_paging">
		<a href="#" title="Younger results" onclick='fpaging(-1);fupdate();'>&#x25B2;&#x25B2;&#x25B2;</a>
		<small><span id='offset'>0</span> records before.</small>
	</div>
	
	<div id="main_div">
		<table id="main" border="1" width="100%">
			<thead>
				<tr id="main_head"><!--DYN
					<th rel="Pdatetime" class="c_sort  asc ">Timestamp</th>
					(...)
				--></tr>
				<tr id="main_search"><!--DYN
					<th class="c_search">
						<span id="Pmessage_param" class="c_filters">
							<div class="c_param">
								<span class="c_prm_type">≠</span>
								<span class="c_prm_val">auth</span>
								&nbsp;
								<a onclick="fremove(this);fupdate();" class="c_button c_btn_remove">x</a>
							</div>
							(...)
						</span>
						<input autocomplete="on" size="30" id="Pmessage" name="Pmessage" type="text"/>
						<a onclick='faddfilter("Pmessage","~",document.dynamic.Pmessage.value);fupdate();' title="match regex" class="c_button c_form">~</a>
						<a onclick='faddfilter("Pmessage","!",document.dynamic.Pmessage.value);fupdate();' title="Don't match regex" class="c_button c_form">≁</a>
					</th>
					(...)
				--></tr>
			</thead>
			<tbody id="main_body" class="c_main_body"><!--DYN
				<tr id="">
					<td><div class="Pdatetime c_cell">2011-10-08 15:11:26</div></td>
					<td><div class="Phost c_cell c_host_sichemvm">sichemvm
						<div class="c_autof_abs">
							<a onclick='faddfilter("Phost","=","sichemvm");fupdate();' title="Equal" class="c_button c_btn_autof">=</a>
							<a onclick='faddfilter("Phost","n","sichemvm");fupdate();' title="Not equal" class="c_button c_btn_autof">≠</a>
					</div></div></td>
					(...)
				</tr>
				(...)
			--></tbody>
			<thead style="display:none;">
				<tr id="main_template"><!--DYN--></tr>
			</thead>
		</table>
	</div>
	
	<div id="Polder" class="c_paging">
		<a href="#" title="Older results" onclick='fpaging(1);fupdate();'>&#x25BC;&#x25BC;&#x25BC;</a>
	</div>
</p>

</form>

<p><br /></p>
    
<p><div id="logs_"></div></p>
    
</body>
</html>